package createModel.singletonMode.hungrySingleton;

/**
 * 功能描述: 静态代码块 实现饿汉模式
 * 2024/02/25
 * <p>
 * ZhangYi
 */
public class HungrySingletonStatic {

    private HungrySingletonStatic() {

    }

    private static HungrySingletonStatic instance;

    static {
        instance = new HungrySingletonStatic();
    }

    public static HungrySingletonStatic getInstance() {
        return instance;
    }
}
